Telegram Group & Telegram Channel
#собесы #python #senior
Вопросы, которые могут задать на собеседовании Senior Python Developer.
Проверьте себя без помощи поисковиков!


Как работает модуль threading и чем он отличается от multiprocessing?

Пример кода:
import threading

def worker():
print("Работа в потоке")

thread = threading.Thread(target=worker)
thread.start()
thread.join()


❗️threading позволяет создавать потоки, которые выполняются в одном процессе и разделяют память. Однако из-за GIL потоки не могут выполняться одновременно на нескольких ядрах CPU. multiprocessing создаёт отдельные процессы, которые могут использовать несколько ядер, но не разделяют память.

Ссылка на
документацию по threading
Please open Telegram to view this post
VIEW IN TELEGRAM



tg-me.com/job_python/6367
Create:
Last Update:

#собесы #python #senior
Вопросы, которые могут задать на собеседовании Senior Python Developer.
Проверьте себя без помощи поисковиков!


Как работает модуль threading и чем он отличается от multiprocessing?

Пример кода:

import threading

def worker():
print("Работа в потоке")

thread = threading.Thread(target=worker)
thread.start()
thread.join()


❗️threading позволяет создавать потоки, которые выполняются в одном процессе и разделяют память. Однако из-за GIL потоки не могут выполняться одновременно на нескольких ядрах CPU. multiprocessing создаёт отдельные процессы, которые могут использовать несколько ядер, но не разделяют память.

Ссылка на
документацию по threading

BY Python Job | Вакансии | Стажировки




Share with your friend now:
tg-me.com/job_python/6367

View MORE
Open in Telegram


Python Job | Вакансии | Стажировки Telegram | DID YOU KNOW?

Date: |

Dump Scam in Leaked Telegram Chat

A leaked Telegram discussion by 50 so-called crypto influencers has exposed the extraordinary steps they take in order to profit on the back off unsuspecting defi investors. According to a leaked screenshot of the chat, an elaborate plan to defraud defi investors using the worthless “$Few” tokens had been hatched. $Few tokens would be airdropped to some of the influencers who in turn promoted these to unsuspecting followers on Twitter.

That strategy is the acquisition of a value-priced company by a growth company. Using the growth company's higher-priced stock for the acquisition can produce outsized revenue and earnings growth. Even better is the use of cash, particularly in a growth period when financial aggressiveness is accepted and even positively viewed.he key public rationale behind this strategy is synergy - the 1+1=3 view. In many cases, synergy does occur and is valuable. However, in other cases, particularly as the strategy gains popularity, it doesn't. Joining two different organizations, workforces and cultures is a challenge. Simply putting two separate organizations together necessarily creates disruptions and conflicts that can undermine both operations.

Python Job | Вакансии | Стажировки from fr


Telegram Python Job | Вакансии | Стажировки
FROM USA